package com.thz.friend.pojo.analysis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thz.common.core.pojo.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_student_learning_data")
public class StudentLearningData extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    
    // 完成的课程数量
    private Integer completedCourses;
    
    // 编程作业平均分
    private Double homeworkAverageScore;
    
    // 编程挑战成功率
    private Double challengeSuccessRate;

} 